package cc.rboot.tracking.async.impl;

import cc.rboot.tracking.async.TrackingAsyncService;
import cc.rboot.tracking.core.ITrackingProcessor;
import cc.rboot.tracking.domain.TrackingRecord;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class TrackingAsyncServiceImpl implements TrackingAsyncService {

    @Async("tackingTaskExecutor")
    @Override
    public void tracking(ITrackingProcessor processor, TrackingRecord record) throws Exception {
        processor.tracking(record);
    }
}
